﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XXN.Model
{
    public  class ProductModel
    {
        [Display(Name = "ID")]
        [Required]
        public int Pro_id { get; set; }
        [Display(Name = "商品名称")]
        [Required]
        public string Pro_name { get; set; }
        [Display(Name = "商品类型编号")]
        [Required]
        public Nullable<int> Pro_cat_id { get; set; }
        public string Pro_cat_name { get; set; }
        [Display(Name = "销售额")]
        [Required]
        public int Number { get; set; }
        [Display(Name = "商品状态")]
        [Required]
        public string Status { get; set; }
        [Display(Name = "适用人群")]
        [Required]
        public string People { get; set; }
        [Display(Name = "上架时间")]
        [Required]
        public Nullable<System.DateTime> Shelftime { get; set; }
        [Display(Name = "图片")]
        [Required]
        public string Img { get; set; }
        [Display(Name = "推荐编号")]
        [Required]
        public Nullable<int> Rec_id { get; set; }
        public string Rec_Name { get; set; }
        [Display(Name = "权重")]
        [Required]
        public Nullable<int> Weight { get; set; }
    }
}
